package com.zhy.userproiver8001.service.impl;

import com.zhy.pojo.Employee;
import com.zhy.userproiver8001.mapper.EmployeeMapper;
import com.zhy.userproiver8001.service.EmployeeService;
import com.zhy.utils.PageTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    EmployeeMapper mapper;
    @Override
    public List<Employee> getAllEmp(PageTool pageTool,String name,Integer status) {
        return mapper.getAllEmp(pageTool,name,status);
    }

    @Override
    public int countEmp(String name, Integer status) {
        return mapper.countEmp(name,status);
    }
}
